define("article:widget/cms-banner-ads/cms-banner-ads.js",function(n,e,a){var i=n("common:widget/lib/tangram/base/base.js"),s=n("common:widget/lib/tangram/fx/fadeIn/fadeIn.js"),t=n("common:widget/lib/tangram/fx/fadeOut/fadeOut.js");a.exports.init=function(n){var e=n||3e3,a=i.dom.query("#cms-slide-img a"),m=i.dom.query("#cms-slide-btn a"),o=a.length,l=flg_num=0;if(!(2>o)){i.browser.ie<8&&i.each(a,function(n){n.style.display="block"});var r=function(n){t(a[l]),s(a[n]),i.dom.removeClass(m[l],"on"),i.dom.addClass(m[n],"on"),l=flg_num=n},c=null,u=function(){var n=arguments;c=setTimeout(function(){++flg_num+1>o&&(flg_num=0),r(flg_num),n.callee()},e)};u(),i.on("cms-slide-btn","click",function(n){var e=i.event.getTarget(n);if(i.dom.hasClass(e,"sli-btn")){var a=i.array.indexOf(m,e);if(a==l)return;r(a)}}),i.on("cms-slide-wrap","mouseenter",function(){clearTimeout(c),c=null}),i.on("cms-slide-wrap","mouseleave",function(){u()})}}});